﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<?php
include("inc/conn.inc");
include("page.php");
$hove=4;
$url="list.php";
$thepage=$_GET['page']?$_GET['page']:1;
$maxpage=20;
$l_rs=@mysql_query("select * from jm_catalog where id='".$_GET['id']."'");
$l_row=@mysql_fetch_array($l_rs);
$l_num=@mysql_num_rows(@mysql_query("select id from jm_list where (type_id1='$_GET[id]' or type_id2='$_GET[id]')"));
if($l_row[cat_id]>0){
$j=2;
}else{
$j=1;
}
?>
<title><?=$l_row['cat_name']?>加盟 <?=$l_row['cat_name']?>招商 <?=$l_row['cat_name']?>代理 热门项目</title>
<meta name="description" content="三帝加盟网为您提供<?=$l_row['cat_name']?>加盟，<?=$l_row['cat_name']?>招商，<?=$l_row['cat_name']?>代理项目供应商，最新<?=$l_row['cat_name']?>商机。" />
<meta name="keywords" content="<?=$l_row['cat_name']?>加盟,<?=$l_row['cat_name']?>招商,<?=$l_row['cat_name']?>" />
<link href="/css/body.css" rel="stylesheet" type="text/css" />
<link href="/css/head.css" rel="stylesheet" type="text/css" />
<link href="/css/list.css" rel="stylesheet" type="text/css" />
<link href="/css/foot.css" rel="stylesheet" type="text/css" />
</head>
<body>
<?php include("top.php");?>
<div id="mian" class="topside6 side">
<div class="title"><span>共找到<font class="fontred b"><?=$l_num?></font>条符合 <font class="fontred"><?=$l_row['cat_name']?></font> 查询结果</span>您所在的位置：<a href="/">首页</a> >> <a href="/fenlei.php">栏目</a><?php
if($l_row[cat_id]>0){
 $o_rs=@mysql_query("select * from jm_catalog where id='$l_row[cat_id]'");
 $o_row=@mysql_fetch_array($o_rs);
 ?> >> <a href="/jiameng/list-<?=$o_row[id]?>/1.html"><?=$o_row[cat_name]?></a><?php }?> >> <?=$l_row['cat_name']?></div>
<div class="onl"></div>
</div>
<div id="main" class="topside6 side">
<script type="text/javascript">/*960*90，加盟首页-创建于2011-11-9*/ var cpro_id = 'u672448';</script><script 
src="http://cpro.baidu.com/cpro/ui/c.js" type="text/javascript"></script>
</div>
<div id="mian" class="topside6  sideyellow backyellow">
<div class="title1 size14 b"><?=$l_row['cat_name']?></div>
<div class="Class backwhite sideyellow1">
<ul>

<?php
$l_rs1=@mysql_query("select * from jm_catalog where cat_id='".$_GET['id']."' order by id asc");
$l_rs2=@mysql_query("select count(id) from jm_catalog where cat_id='".$_GET['id']."'");
$num=@mysql_result($l_rs2,0);
@mysql_free_result($l_rs2);
while($l_row1=@mysql_fetch_array($l_rs1)){
?>
<li><a href="/jiameng/list-<?=$l_row1[id]?>/1.html"><?=$l_row1[cat_name]?></a></li>
<?php }
if(!$num){?>
<div align="center">
<script type="text/javascript"><!--
google_ad_client = "pub-2924453545159453";
/* 728x90, 创建于 11-3-13 */
google_ad_slot = "7786933515";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>
<?php }?>

</ul>
<div class="onl"></div>
</div>
</div>

<div id="mian" class="topside6">
  <div class="onl"></div>
<div class="leftmain">
<div>
<div class="zzb3"><img src="/images/list.gif" width="775" height="27" /></div>
<DIV class="zzb3 side">
<DIV style="width:120px;float:left;height:25px;line-height: 25px;" align="center">图片</DIV>
<DIV style="width:276px;float:left;height:25px;line-height: 25px;" align="center">项目信息/公司</DIV>
<DIV style="width:100px;float:left;height:25px;line-height: 25px;" align="center">
<form method="post" action="">
<select name="city" id="city"  onChange="javascript:submit()">
<option value="">--选择省份--</option>
          <option value="137">安徽</option> 
          <option value="11">澳门</option> 
          <option value="1">北京</option> 
          <option value="7">重庆</option> 
          <option value="138">福建</option> 
          <option value="273">广西</option> 
          <option value="257">广东</option> 
          <option value="356">甘肃</option> 
          <option value="313">贵州</option> 
          <option value="222">湖北</option> 
          <option value="199">河南</option> 
          <option value="291">海南</option> 
          <option value="236">湖南</option> 
          <option value="69">黑龙江</option> 
          <option value="13">河北</option> 
          <option value="58">吉林</option> 
          <option value="84">江苏</option> 
          <option value="172">江西</option> 
          <option value="41">辽宁</option> 
          <option value="396">宁夏</option> 
          <option value="383">内蒙古</option> 
          <option value="372">青海</option> 
          <option value="3">上海</option> 
          <option value="300">四川</option> 
          <option value="28">山西</option> 
          <option value="182">山东</option> 
          <option value="343">陕西</option> 
          <option value="5">天津</option> 
          <option value="507">台湾</option> 
          <option value="335">西藏</option> 
          <option value="9">香港</option> 
          <option value="402">新疆</option> 
          <option value="323">云南</option> 
          <option value="110">浙江</option> 
</select>
</form></DIV>
<DIV style="width:90px;float:left;height:25px;line-height: 25px;" align="center">投资金额</DIV>
<DIV style="width:80px;float:left;height:25px;line-height: 25px;" align="center">会员等级</DIV>
<DIV style="width:80px;float:left;height:25px;line-height: 25px;" align="center">联系我们</DIV>
</DIV>
<?php
if($_POST[city]){
$sqls=" and member.m_pro='$_POST[city]'";
}


$rs=@mysql_query("select jm_list.id,jm_list.j_title,jm_list.picture,jm_list.addtime,jm_list.j_info,jm_list.j_ztze,member.m_type,member.m_user,member.m_cname,member.pro,member.city from jm_list inner join member on (jm_list.member_id=member.id) where jm_list.type_id$j='$_GET[id]' and jm_list.j_sh=1  ".$sqls." order by jm_list.addtime desc limit ".($thepage-1)*$maxpage.",$maxpage");
while($row=@mysql_fetch_array($rs)){
if($row[m_type]==6){
   $m_url="http://$row[m_user].sandib2b.cn/";
   $m_url2="http://$row[m_user].sandib2b.cn/contact.htm";
}else{
   $m_url="http://www.sandib2b.cn/cn/template/$row[m_user]/";
   $m_url2="http://www.sandib2b.cn/cn/template/$row[m_user]/contact.html";
}
?>



<DIV class=zzb4 id=Info6197>
<DIV class=zzb4-2>
<a href="/jiameng/xiangmu/<?=$row['id']?>.html" target="_blank">
<img src="http://img.sandib2b.cn/<?=$row[picture]?>" border="0" width='90' height='90'/></a></DIV>
<DIV class=zzb4-3>
<DIV class=zzb4-3-1><a href="/jiameng/xiangmu/<?=$row['id']?>.html" target="_blank"><?=mb_substr($row[j_title],0,15,'utf-8')?></a><SPAN 
style="FONT-WEIGHT: normal" class="size10 fontgray">2010-09-17</SPAN></DIV>
<DIV class=zzb4-3-Time></DIV>
<DIV class=zzb4-3-2><?=mb_substr(strip_tags($row[j_info]),0,50,'utf-8')?></DIV>
<DIV class=zzb4-3-3>
<DIV style="FLOAT: left;font-weight: lighter;"><A href="<?=$m_url?>" target=_blank><?=$row['m_cname']?></A> </DIV>
<DIV style="FLOAT: right; COLOR: #999999;font-weight: lighter;">[<?=$row[pro]?>-<?=$row['city']?>] </DIV></DIV></DIV>
<DIV class=zzb5>
  <DIV style="TEXT-ALIGN: center" class="fontred size14 b"><?php if($row[j_ztze]){?><?=$row[j_ztze]?>万元<?php }?></DIV>
<div class="size11 fontgray"> </div></DIV>
<DIV class=zzb52>
<div style="COLOR: #999999;font-weight: lighter;">
<?php if($row[m_type]==6){?>
<a href="<?=$m_url?>certificate.htm" target="_blank"><img src="/images/member1.gif" border="0"></a><?php }?></div>
</DIV>
<DIV class=zzb53>
  <div class="ms"><a href="<?=$m_url2?>" target="_blank"><img src="/images/list01.gif" width="81" height="25" border="0" /></a></div>
  <div class="ms"><a href="/jiameng/xiangmu/<?=$row['id']?>.html" target="_blank"><img src="/images/list02.gif" width="81" height="25" border="0" /></a></div>
</DIV>
<div class="onl"></div>
</DIV>


<?php }
$rs2=@mysql_query("select count(id) from jm_list  where j_sh=1 and type_id$j='$_GET[id]' ".$sqls);
$totalrecord=@mysql_result($rs2,0); 
$totalpage=ceil($totalrecord/$maxpage);
@mysql_free_result($rs2);
?>


</div>
<div class="onl"></div>
<div class="page">
<div class="pageleft">
<ul>
<?php pages($thepage,$totalpage,$maxpage,4);?></ul>
</div>
<div class="pageright">
<form name="pageform" method="post" action="" onSubmit="return onCheckPage()"> 
共<?=$totalpage?>页　到
<input type="text" name="page" class="input-txt" size="5" maxlength="5">页
<input type="submit" value="确定" class="but">
</form>
<script language="javascript"> 
function onCheckPage(){
var page = parseInt(document.pageform.page.value); 
if(isNaN(page)){
alert("请输入数字(1,<?=$totalpage?>)");
return false; 
}
if(page<=0){
page =1; 
}
if(page ><?=$totalpage?>){
page=<?=$totalpage?>;
}
if(page>1){
document.pageform.action = "/jiameng/list-<?=$_GET[id]?>/"+page+".html"; 
}else{
document.pageform.action = "/jiameng/list-<?=$_GET[id]?>/1.html"; 
}
return true;
}
</script>
  </div>
<div class="onl"></div>
</div>
<!--page end-->
</div>


<div class="rightmain">

  <div class="right side">
    <div style="width:180px;" align="center">
<script type="text/javascript">/*160*600，创建于2010-8-4*/ var cpro_id = 'u136291';</script><script src="http://cpro.baidu.com/cpro/ui/c.js" 

type="text/javascript"></script>
      <hr size=1 color="#cccccc"/>
    </div>
  </div>
</div>
<div class="onl"></div>
</div>
<div id="main" class="topside6 side">
<script type="text/javascript">/*960*90，加盟首页-创建于2011-11-9*/ var cpro_id = 'u672448';</script><script src="http://cpro.baidu.com/cpro/ui/c.js" type="text/javascript"></script>
</div>

<div class="onl"></div>
</div>

<?php include("foot.php");?>

</body>
</html>
<script type="text/javascript">/*120*270，创建于2011-3-23*/ var cpro_id = 'u419785';</script><script src="http://cpro.baidu.com/cpro/ui/f.js" type="text/javascript"></script>
